package com.web.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.web.model.TagsInfo;
import com.web.repository.TagsRepository;

@Service("tagsService")
public class TagsServiceImpl implements TagsService {
	
	@Autowired
	private TagsRepository tagsRepository;
	
	public TagsInfo insertTag(TagsInfo tagsInfo) {
		Map<String,Object> params = new HashMap<String,Object>();
		params.put("tagName", tagsInfo.getTagName());
		params.put("userId", tagsInfo.getUserId());
		tagsRepository.insertTag(params);
		return null;
	}
	
	

}
